package com.zhongkun.datahome.service.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.zhongkun.datahome.service.domain.Task;
import com.zhongkun.datahome.service.req.qry.task.TaskQry;
import com.zhongkun.datahome.service.res.PageVo;
import com.zhongkun.datahome.service.res.task.TaskVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface TaskMapper extends BaseMapper<Task> {

    PageVo<TaskVo> pageTask(IPage<TaskVo> page, TaskQry qry);

    List<Task> queryReceiveTaskList(@Param("tenantUserId") Long tenantUserId, @Param("familyId") Long familyId, @Param("feedbackTask") boolean feedbackTask);

    Long queryReceiveTaskCount(@Param("tenantUserId") Long tenantUserId, @Param("feedbackTask") boolean feedbackTask);
}